<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<Icms.Core.Model.Party>>" %>
<%foreach (var o in Model)
  {%>
<tr id='o<%=o.Id%>'>
    <td>
        <%=o.Person.FirstName%>
        <%=o.Person.LastName%>
    </td>
    <td>
        <%=o.Person.DateOfBirth.HasValue ? o.Person.DateOfBirth.Value.ToShortDateString():"" %>
    </td>
    <td>
        <%=o.Person.Region%>  <%=o.Person.Location%>
    </td>
    <td>
        <%=o.TypeParty.Title%>
    </td>
    <td>
        <%=Html.PopupFormActionLink("Edit","Editeaza", parameters: new object[] {o.Id},
                                                 htmlAttributes: new {@class = "abtn"})%>
    </td>
    <td>
        <%=Html.Partial("delbtn",o.Id)%>
    </td>
</tr>
<%
  }%>